package com.canqiang.template;

import com.canqiang.docadvice.R;

import android.app.ActivityGroup;
import android.content.Intent;
import android.os.Bundle;
import android.widget.LinearLayout;

public class DealActivity extends ActivityGroup {
	private LinearLayout container = null;
	public static int requestCode=0;
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dealtpl);
        container = (LinearLayout) findViewById(R.tpl.dealcontainer);
        Intent t=getIntent();
		requestCode=t.getIntExtra("requestcode", 0);
        startDealTitle();
	}
	public void startDealTitle(){
		container.removeAllViews();
		container.addView(getLocalActivityManager().startActivity(
                "dealtitle",
                new Intent(DealActivity.this,DealTitleListActivity.class)
                .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)).getDecorView());
	}

}
